package com.rockwell.robot2015.model.command;

import com.rockwell.robot2015.model.RobotAction;

public class RobotCommand {
	public RobotAction action;
	public double param1;
	
	public RobotCommand() {
		
	}
	
	public RobotCommand(RobotAction action) {
		this.action = action;
	}
	
	public RobotCommand(RobotAction action, double p1) {
		this.action = action;
		param1 = p1;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o != null && o instanceof RobotCommand) {
			RobotCommand com = (RobotCommand)o;
			return action.equals(com.action);
		}
		else {
			return false;
		}
	}
}
